home *** CD-ROM | disk | FTP | other *** search
- on(release){
- my_score = _root.my_score;
- if(my_name eq "")
- {
- my_name = "Anon";
- }
- if(wordbank.substr(1,1) ne ",")
- {
- wordbank = "," add wordbank add ",";
- }
- comma = 0;
- r = length(wordbank);
- count = 1;
- while(Number(r) >= Number(count))
- {
- if(wordbank.substr(count,1) eq ",")
- {
- comma = Number(comma) + 1;
- set("num" add comma,count);
- }
- count = Number(count) + 1;
- }
- count = 1;
- while(Number(comma) >= Number(count))
- {
- set("bad" add count,wordbank.substr(eval("num" add count) + 1,eval("num" add (count + 1)) - eval("num" add count) - 1));
- count = Number(count) + 1;
- }
- badwords = comma - 1;
- short = my_name;
- length = length(short);
- l = 1;
- while(Number(length) >= Number(l))
- {
- set("w" add l,ord(short.substr(l,1)));
- if(eval("w" add l) >= 65 and 90 >= eval("w" add l))
- {
- set("w" add l,chr(eval("w" add l) + 32));
- }
- else
- {
- set("w" add l,chr(eval("w" add l)));
- }
- l = Number(l) + 1;
- }
- l = 1;
- short = "";
- while(Number(length) >= Number(l))
- {
- short = short add eval("w" add l);
- l = Number(l) + 1;
- }
- m = 1;
- n = length(my_name);
- while(Number(badwords) >= Number(m))
- {
- if(n >= length(eval("bad" add m)))
- {
- v = 1;
- while(n - length(eval("bad" add m)) + 1 >= v)
- {
- if(short.substr(v,length(eval("bad" add m))) eq eval("bad" add m))
- {
- my_name = word_replacer;
- }
- v = Number(v) + 1;
- }
- }
- m = Number(m) + 1;
- }
- loadVariables(score_keeper,"","POST");
- gotoAndPlay(19);
- }
-